package com.hangyixing.decode.entity;

import lombok.Data;

import java.util.LinkedHashMap;


/**
 * @author
 */
@Data
public class RestApiResult {

    private LinkedHashMap<String, Object> data = new LinkedHashMap<>(8);

    public RestApiResult addData(String key, Object param) {
        data.put(key, param);
        return this;
    }

    public LinkedHashMap<String, Object> getData() {
        return data;
    }

    public void setData(LinkedHashMap<String, Object> data) {
        this.data = data;
    }
}
